import http from './http'

export const getToken = () => {
  return http.get('/manage/loginout/getToken')
}
export const needCaptcha = () => {
  return http.get('/manage/loginout/needCaptcha')
}
export const captcha = (data) => {
  return http.post('/manage/loginout/captcha', data)
}

export const login = (data) => {
  return http.post('/manage/loginout/login', data)
}

export const logout = (data) => {
  return http.post('/manage/loginout/logout', data)
}
